﻿<%-- <%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="../../bootstrap-3.3.7/dist/css/bootstrap.min.css" />
<script type="text/javascript" src="../../bootstrap-3.3.7/dist/js/jquery.min.js"></script>
<script type="text/javascript" src="../../js/jquery.media.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="../../bootstrap-3.3.7/docs/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<title>预览</title>
</head>
<body>
<center>
 <div class="panel panel-primary">
   <div class="panel-body">
 		<a  id="media" class="media" ></a>  
 	</div>
   </div>
</center>
</body>
<script type="text/javascript">
    $(function() {
    	var src = encodeURI('${src }');
    	$("#media").attr("href","../../"+src); 
        $('a.media').media({width:900, height:900});  
        $('a.mediase').media({width:900, height:900});
    });  
</script> 
</html> --%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="../../bootstrap-3.3.7/dist/css/bootstrap.min.css" />
<script type="text/javascript" src="../../bootstrap-3.3.7/dist/js/jquery.min.js"></script>
<!--  <script type="text/javascript" src="../../js/jquery.media.js"></script>
 --> 
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="../../bootstrap-3.3.7/docs/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<title>预览</title>
</head>
<body>
	<div class="container">
	        <div class="row">
	            <div class="col-md-8" >
	                <iframe id="viewiframe" style="width:100%;height:800%">
	                </iframe>
	            </div>
	        </div>
	  </div>
</body>
<script type="text/javascript">
     $(function() {
    	var src =  encodeURI('${src }');
    	 $("#viewiframe").attr("src","../../pdfjs/web/viewer.html?file=../../"+src);
    	 //window.open('../../pdfjs/web/viewer.html?file=../../'+src,'PDF','width:80%;height:80%;top:100;left:100;');
      
    });  
</script> 
</html>